how to use both timeout and break inside for loop in javascript

join shbcf.ru